Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next

sessionScope is JSF sessionMap

Yes, the XPages sessionScope is the same as the JSF sessionScope.

It is available through these JSF APIs:
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String,Object> sessionScope =facesContext.getExternalContext().getSessionMap();

Your example was calling ExternalContext.getRequestMap() which is the requestScope.

You can also resolve any of the global variables using the JSF VariableResolver to look up the variable name:
FacesContext facesContext = FacesContext.getCurrentInstance();
Map<String,Object> sessionScope = (Map<String,Object>)
facesContext.getApplication().getVariableResolver().resolveVariable(facesContext,
"sessionScope");


Feedback response number MKEE825DRM created by ~Lex Feztookonyikle on 01/28/2010

XPages sessionScope vs. JSF session... (~Phil Bubatexet... 14.Dec.09)
. . I have to add something.... (~Phil Bubatexet... 14.Dec.09)
. . sessionScope is JSF sessionMap (~Elizabeth Cisb... 28.Jan.10)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS